/* Copyright 2011-2016 Adobe Systems Incorporated. All Rights Reserved. */ (function(a,b){function c(){}var d={version:0.1,inherit:function(a,c){var b=function(){};b.prototype=c.prototype;a.prototype=new b;a.prototype.constructor=a;a.prototype._super=c},ensureArray:function(){var c=[],f=arguments.length;f>0&&(c=f>1||!a.isArray(arguments[0])?a.makeArray(arguments):arguments[0]);return c},hasPointerCapture:function(){return!!b.hasPointerCapture},setPointerCapture:function(a,c){if(c.pointerId&&!b.hasPointerCapture)if(a.setPointerCapture)a.setPointerCapture(c.pointerId),b.hasPointerCapture= !0;else if(a.msSetPointerCapture)a.msSetPointerCapture(c.pointerId),b.hasPointerCapture=!0},releasePointerCapture:function(a,c){c.pointerId&&b.hasPointerCapture&&(a.releasePointerCapture?a.releasePointerCapture(c.pointerId):a.msReleasePointerCapture&&a.msReleasePointerCapture(c.pointerId),delete b.hasPointerCapture)},scopedFind:function(c,b,d,h){for(var d=" "+d+" ",i=[],c=a(c).find(b),b=c.length,h=a(h)[0],k=0;k1&&f[0]||"Widget";c=f[h-1];b[namespace][c]=g}})(jQuery,WebPro,window,document); (function(a,b){b.widget("Widget.Button",b.Widget,{defaultOptions:{hoverClass:"wp-button-hover",activeClass:"wp-button-down",disabledClass:"wp-button-disabled",disabled:!1,clickCallback:null,prevCallback:null,nextCallback:null},_attachBehavior:function(){var c=this,b=function(g){c.$element.removeClass(c.options.activeClass);!c.options.disabled&&c.options.clickCallback&&c.mouseDown&&c.options.clickCallback.call(this,g);a(c.$element).off("mouseup pointerup",b);c.mouseDown=!1};this.mouseDown=!1;this.$element.on("keydown", function(a){if(!c.options.disabled){var b=a.which||a.keyCode;switch(b){case 37:case 38:a.preventDefault();c.options.prevCallback&&c.options.prevCallback.call(this,a);break;case 39:case 40:a.preventDefault();c.options.nextCallback&&c.options.nextCallback.call(this,a);break;case 32:case 13:b===32&&a.preventDefault(),c.options.clickCallback&&c.options.clickCallback.call(this,a)}}}).on("mouseover",function(){c.options.disabled||c.$element.addClass(c.options.hoverClass+(c.mouseDown?" "+c.options.activeClass: ""))}).on("mouseleave",function(){c.$element.removeClass(c.options.hoverClass+" "+c.options.activeClass);a(c.$element).off("mouseup",b)}).on("mousedown pointerdown",function(){if(!c.options.disabled)c.mouseDown=!0,c.$element.addClass(c.options.activeClass),a(c.$element).on("mouseup pointerup",b)});this.disabled(this.options.disabled)},disabled:function(a){if(typeof a==="boolean")this.options.disabled=a,this.$element[a?"addClass":"removeClass"](this.options.disabledClass);return this.options.disabled}}); a.fn.wpButton=function(a){this.each(function(){new b.Widget.Button(this,a)});return this}})(jQuery,WebPro,window,document); (function(a,b){b.widget("Widget.RadioGroup",b.Widget,{_widgetName:"radio-group",defaultOptions:{defaultIndex:0,hoverClass:"wp-radio-hover",downClass:"wp-radio-down",disabledClass:"wp-radio-disabled",checkedClass:"wp-radio-checked",disabled:!1,toggleStateEnabled:!1},_attachBehavior:function(){var a=this;this.buttons=[];this.activeElement=null;this.activeIndex=-1;this.$element.each(function(){a.buttons.push(a._addButtonBehavior(this))});this.disabled(this.options.disabled)},_bpActivate:function(){if(-1!= this.activeIndex){var c=this._getElement(this.activeIndex);c&&a(c).addClass(this.options.checkedClass)}},_bpDeactivate:function(){if(-1!=this.activeIndex){var c=this._getElement(this.activeIndex);c&&a(c).removeClass(this.options.checkedClass)}},_addButtonBehavior:function(a){var d=this,g=new b.Widget.Button(a,{hoverClass:this.options.hoverClass,downClass:this.options.downClass,disabledClass:this.options.disabledClass,clickCallback:function(b){return d._handleClick(b,g,a)},prevCallback:function(b){return d._handlePrev(b, g,a)},nextCallback:function(b){return d._handleNext(b,g,a)}});return g},_handlePrev:function(){if(!this.options.disabled){if(this.activeIndex>this._getElementIndex(this.firstButton.$element[0]))this.activeIndex--;else if(this.activeIndex===this._getElementIndex(this.firstButton.$element[0])||this.activeIndex===-1)this.activeIndex=this._getElementIndex(this.lastButton.$element[0]);this._getElementByIndex(this.activeIndex).focus();this.checkButton(this.activeIndex)}},_handleNext:function(){if(!this.options.disabled){if(this.activeIndex< this.numButtons-1)this.activeIndex++;else if(this.activeIndex===this.numButtons-1)this.activeIndex=this._getElementIndex(this.firstButton.$element[0]);this._getElementByIndex(this.activeIndex).focus();this.checkButton(this.activeIndex)}},_handleClick:function(a,b,g){this.options.disabled||this.checkButton(g)},_getElementIndex:function(c){return c?a.inArray(c,this.$element.get()):-1},_getElementByIndex:function(a){return a>=0?this.$element.eq(a)[0]:null},_getElement:function(a){return typeof a==="number"? this._getElementByIndex(a):a},checkButton:function(c){var c=this._getElement(c),b=this.activeElement,g=this.options.checkedClass;c!==b?(b&&this.uncheckButton(b),c&&a(c).addClass(g)):this.options.toggleStateEnabled&&c&&(this.uncheckButton(c,g),c=null);this.activeElement=c;this.activeIndex=this._getElementIndex(c)},uncheckButton:function(c){a(c).removeClass(this.options.checkedClass)},disabled:function(c){if(typeof c==="boolean")this.disabled=c,a.each(this.buttons,function(){this.disabled(c)});return this.options.disabled}}); a.fn.wpRadioGroup=function(a){new b.Widget.RadioGroup(this,a);return this}})(jQuery,WebPro,window,document); (function(a,b){b.widget("Widget.TabGroup",b.Widget.RadioGroup,{defaultOptions:{defaultIndex:0,hoverClass:"wp-tab-hover",downClass:"wp-tab-down",disabledClass:"wp-tab-disabled",checkedClass:"wp-tab-active",disabled:!1,toggleStateEnabled:!1,isPopupButtonWidget:!1,parentSelectors:[".ThumbGroup",".AccordionWidget",".TabbedPanelsWidget"]},_attachBehavior:function(){this._super.prototype._attachBehavior.apply(this,arguments);this.isPopupButtonWidget=this.options.isPopupButtonWidget;this.numButtons=this.buttons.length; this.firstButton=this.buttons[0];this.lastButton=this.buttons[this.numButtons-1];this.configureAria()},selectTab:function(a){this.checkButton(a)},configureAria:function(){var c=this;if(this.options.isPopupButtonWidget===!0||this.numButtons===1)a.each(this.buttons,function(){this.$element.attr({role:"button",tabindex:"0","aria-haspopup":"true"})}),this.isPopupButtonWidget=!0;else if(this.numButtons>1)this.parentElement=this.buttons[0].$element.parents(this.options.parentSelectors.join()),this.parentElement.attr("role", "tablist"),a.each(this.buttons,function(a){this.$element.attr({role:"tab",tabindex:"0"});a>0&&c.uncheckButton(this.$element)})},checkButton:function(c){var b=this._getElement(c),g=this._getElementIndex(b),g={tab:b,tabIndex:g};this.trigger("wp-tab-before-select",g);this._super.prototype.checkButton.apply(this,arguments);a(b).attr({tabindex:"0"});this.options.contentLayout_runtime!=="lightbox"&&a(b).attr({"aria-selected":"true"});this.trigger("wp-tab-select",g)},uncheckButton:function(c){this._super.prototype.uncheckButton.apply(this, arguments);this.isPopupButtonWidget||(a(c).attr({tabindex:"-1"}),this.options.contentLayout_runtime!=="lightbox"&&a(c).attr({"aria-selected":"false"}))}});a.fn.wpTabGroup=function(a){new b.Widget.TabGroup(this,a);return this}})(jQuery,WebPro,window,document); (function(a,b){b.widget("Widget.PanelGroup",b.Widget,{_widgetName:"panel-group",defaultOptions:{defaultIndex:0,panelClass:"wp-panel",activeClass:"wp-panel-active",toggleStateEnabled:!1,tabGroups:null},_setUp:function(){var a=this;this.tabGroups=[];this._tabCallback=function(b,g){a._handleTabSelect(b,g)};this.showLock=0;this.tabDriver=null;return this._super.prototype._setUp.apply(this,arguments)},_bpActivate:function(){if(-1!=this.activeIndex){var c=this._getElement(this.activeIndex);c&&a(c).addClass(this.options.activeClass)}}, _bpDeactivate:function(){if(-1!=this.activeIndex){var c=this._getElement(this.activeIndex);c&&a(c).removeClass(this.options.activeClass)}},_attachBehavior:function(){this.activeElement=null;this.activeIndex=-1;this.$element.addClass(this.options.panelClass);var a=this.options.defaultIndex;typeof a==="number"&&a>=0&&this.showPanel(a);this.addTabGroup(this.options.tabGroups)},_getElementIndex:function(c){return c?a.inArray(c,this.$element.get()):-1},_getElementByIndex:function(a){return this.$element.eq(a)[0]}, _getElement:function(a){return typeof a==="number"?this._getElementByIndex(a):a},configureAria:function(c){a.each(this.$element,function(b,g){a(g).attr({role:"tabpanel","aria-labelledby":c.buttons[b].$element.attr("id")});c.buttons[b].$element.attr({"aria-controls":a(g).attr("id")})})},showPanel:function(c){if(!this.showLock){++this.showLock;var b=this._getElement(c),g=this.activeElement,f=this.options.activeClass;if(b)if(b!==g){c={panel:b,panelIndex:this._getElementIndex(b)};this.trigger("wp-panel-before-show", c);g&&this.hidePanel(g);a(b).addClass(f);this.activeElement=b;this.activeIndex=this._getElementIndex(b);b=this.tabGroups;for(g=0;g0)b.options.marginBottom=Muse.Utils.getCSSIntValue(i,"margin-bottom"),b.options.originalHeight=i[0].scrollHeight;b.options.rotatedAccordion=i;g.bind("wp-panel-show",function(a,f){d._showPanel(b,f)});g.bind("wp-panel-hide",function(a,f){d._hidePanel(b,f)});f.each(function(b){var b=b===j,c={};c.overflow=b?"":"hidden";if(h==="vertical"||h==="both")c.height=b?"auto":"0";if(h==="horizontal"||h==="both")c.width= b?"auto":"0";a(this).css(c)})},_updateMarginBottomForRotatedAccordion:function(a){a.options.rotatedAccordion.css("margin-bottom",Math.round(a.options.marginBottom-(a.options.rotatedAccordion[0].scrollHeight-a.options.originalHeight))+"px")},_transitionPanel:function(b,d,g){a("body").trigger("wp-page-height-change",d-b);if((b=g.options.rotatedAccordion)&&b.length>0){if(g.options.originalHeight==0&&"undefined"!==typeof d)g.options.marginBottom=Muse.Utils.getCSSIntValue(b,"margin-bottom"),g.options.originalHeight= b[0].scrollHeight;this._updateMarginBottomForRotatedAccordion(g)}},_showPanel:function(b,d){if(!b.$bp||b.$bp.hasClass("active")){var g=b.options,f=g.transitionDirection,j=a(d.panel),h={},i=g.dispatchTransitionEvents,k=this,l=j.height(),m=function(a){a=parseInt(a.elem.style.height);k._transitionPanel(l,a,b);l=a};if(f==="vertical"||f==="both")h.height=j[0].scrollHeight+"px";if(f==="horizontal"||f==="both")h.width=j[0].scrollWidth+"px";j.stop(!0,!0).queue("animationFrameFx",a.animationFrameFx).animate(h, {duration:g.transitionDuration,progress:i?m:null,queue:"animationFrameFx",complete:function(){var a={overflow:""};if(f==="vertical"||f==="both")a.height="auto";if(f==="horizontal"||f==="both")a.width="auto";j.css(a);(a=b.options.rotatedAccordion)&&a.length>0&&k._updateMarginBottomForRotatedAccordion(b)}}).dequeue("animationFrameFx")}},_hidePanel:function(b,d){if(!b.$bp||b.$bp.hasClass("active")){var g=b.options,f=g.transitionDirection,j=a(d.panel),h={},i=g.dispatchTransitionEvents,k=this,l=j.height(), m=function(a){a=parseInt(a.elem.style.height);k._transitionPanel(l,a,b);l=a};if(f==="vertical"||f==="both")h.height="0";if(f==="horizontal"||f==="both")h.width="0";j.stop(!0,!0).queue("animationFrameFx",a.animationFrameFx).animate(h,{duration:g.transitionDuration,queue:"animationFrameFx",progress:i?m:null,complete:function(){j.css("overflow","hidden");var a=b.options.rotatedAccordion;a&&a.length>0&&k._updateMarginBottomForRotatedAccordion(b)}}).dequeue("animationFrameFx")}}}})(jQuery,WebPro,window, document); (function(a,b){b.widget("Widget.SlideShowBase",b.Widget,{_widgetName:"slideshow-base",defaultOptions:{displayInterval:6E3,autoPlay:!1,loop:!0,playOnce:!1},_setUp:function(){var a=this;this._ssTimer=0;this._ssTimerTriggered=!1;this._ssTimerCallback=function(){a._ssTimerTriggered=!0;a.next();a._ssTimerTriggered=!1};return b.Widget.prototype._setUp.apply(this,arguments)},_ready:function(){this.options.autoPlay&&this.play()},play:function(a){e=this.trigger("wp-slideshow-before-play");e.isDefaultPrevented()||(this._startTimer(!1, a),this.trigger("wp-slideshow-play"))},stop:function(){e=this.trigger("wp-slideshow-before-stop");e.isDefaultPrevented()||(this._stopTimer(),this.trigger("wp-slideshow-stop"))},isPlaying:function(){return this._ssTimer!==0},_startTimer:function(a,b){this._stopTimer();var g=b?0:this.options.displayInterval;a&&(g+=this.options.transitionDuration);this._ssTimer=setTimeout(this._ssTimerCallback,g)},_stopTimer:function(){this._ssTimer&&clearTimeout(this._ssTimer);this._ssTimer=0},_executeCall:function(a, b){e=this.trigger("wp-slideshow-before-"+a);e.isDefaultPrevented()||(this["_"+a].apply(this,b)&&this.stop(),this.isPlaying()&&this._startTimer(!0),this.trigger("wp-slideshow-"+a))},first:function(){return this._executeCall("first",arguments)},last:function(){return this._executeCall("last",arguments)},previous:function(){return this._executeCall("previous",arguments)},next:function(){return this._executeCall("next",arguments)},goTo:function(){return this._executeCall("goTo",arguments)},close:function(){return this._executeCall("close", arguments)},_first:function(){},_last:function(){},_previous:function(){},_next:function(){},_goTo:function(){},_close:function(){}})})(jQuery,WebPro,window,document); (function(a,b){b.widget("Widget.ContentSlideShow",b.Widget.SlideShowBase,{_widgetName:"content-slideshow",defaultOptions:{slideshowClassName:"wp-slideshow",clipClassName:"wp-slideshow-clip",viewClassName:"wp-slideshow-view",slideClassName:"wp-slideshow-slide",slideLinkClassName:"wp-slideshow-slide-link",firstBtnClassName:"wp-slideshow-first-btn",lastBtnClassName:"wp-slideshow-last-btn",prevBtnClassName:"wp-slideshow-prev-btn",nextBtnClassName:"wp-slideshow-next-btn",playBtnClassName:"wp-slideshow-play-btn", stopBtnClassName:"wp-slideshow-stop-btn",closeBtnClassName:"wp-slideshow-close-btn",playingClassName:"wp-slideshow-playing"},_findWidgetElements:function(a){var d=this.$element[0];return b.scopedFind(d,a,this.options.slideshowClassName,d)},_attachBtnHandler:function(a,b){var g=this;this["$"+b+"Btn"]=this._findWidgetElements("."+a).attr({tabindex:"0",role:"button","aria-label":b}).unbind("keydown").bind("keydown",function(a){var c=a.keyCode||a.which;if(c===32||c===13)g[b](),a.preventDefault()}).unbind("click").bind("click", function(a){g[b]();a.preventDefault()})},_getAjaxSrcForImage:function(a){return a.data("src")},_reprioritizeImageLoadingIfRequired:function(b){!this._isLoaded(b)&&this._cssilLoader&&!this._cssilLoader.isQueueEmpty()&&(b=a(this.slides.$element[b]),this._cssilLoader.reprioritize(this._getAjaxSrcForImage(b.is("img")?b:b.find("img")),this.isPlaying()))},_bpActivate:function(){this.slides.bind("wp-panel-show",this._panelShowCallback)},_bpDeactivate:function(){this.slides.unbind("wp-panel-show").unbind("wp-panel-before-show").unbind("wp-panel-hide").unbind("wp-panel-before-hide"); this.unbind("wp-slideshow-play").unbind("wp-slideshow-stop");this.tabs&&this.tabs.trigger("wp-panel-hide",{panelIndex:this.slides.activeIndex})},_attachBehavior:function(){var a=this,d=this.options;this._super.prototype._attachBehavior.call(this);this._panelShowCallback=function(){a._ssTimerTriggered||a.isPlaying()&&a._startTimer(!1)};this.$element.addClass(d.slideshowClassName);var g=this.slides?this.slides.$element:this._findWidgetElements("."+d.slideClassName),f=this.tabs?this.tabs.$element:this._findWidgetElements("."+ d.slideLinkClassName),j=d.event==="click"&&d.deactivationEvent==="mouseout_click";if(!this.slides&&(this.slides=new b.Widget.PanelGroup(g,{defaultIndex:this.slides&&this.slides.activeIndex||d.defaultIndex||0,toggleStateEnabled:j}),this.slides.bind("wp-panel-show",this._panelShowCallback),this.tabs=null,f.length))this.tabs=new b.Widget.TabGroup(f,{defaultIndex:this.tabs&&this.tabs.activeIndex||d.defaultIndex||0,toggleStateEnabled:j,contentLayout_runtime:d.contentLayout_runtime}),this.slides.addTabGroup(this.tabs); this.slides.bind("wp-panel-before-show",function(b,f){a._reprioritizeImageLoadingIfRequired(f.panelIndex)});this._attachBtnHandler(d.firstBtnClassName,"first");this._attachBtnHandler(d.lastBtnClassName,"last");this._attachBtnHandler(d.prevBtnClassName,"previous");this._attachBtnHandler(d.nextBtnClassName,"next");this._attachBtnHandler(d.playBtnClassName,"play");this._attachBtnHandler(d.stopBtnClassName,"stop");this._attachBtnHandler(d.closeBtnClassName,"close");this.bind("wp-slideshow-play",function(){this.$element.addClass(d.playingClassName)}); this.bind("wp-slideshow-stop",function(){this.$element.removeClass(d.playingClassName)})},_first:function(){this.slides.showPanel(0)},_last:function(){var a=this.slides;a.showPanel(a.$element.length-1)},_previous:function(){var a=this.slides,b=a.$element.length,g=a.activeIndex,b=(g<1?b:g)-1;!this.options.loop&&0==g?this.isPlaying()&&this.stop():a.showPanel(b)},_next:function(){var a=this.slides,b=a.activeIndex,g=(b+1)%a.$element.length;!this.options.loop&&0==g?this.isPlaying()&&this.stop():this.options.playOnce&& 0==g&&this.isPlaying()?this.stop():(!this.isPlaying()||this._isLoaded(b)&&this._isLoaded(g))&&a.showPanel(g)},_goTo:function(){var a=this.slides;a.showPanel.apply(a,arguments)},_close:function(){var a=this.slides;a.hidePanel(a.activeElement)},_isLoaded:function(b){if(this._csspIsImageSlideShow&&(b=a(this.slides.$element[b]),b=b.is("img")?b:b.find("img"),b.length>0&&(b.hasClass(this.options.imageIncludeClassName)||!b[0].complete)))return!1;return!0}})})(jQuery,WebPro,window,document); (function(a,b,c,d,g){b.Widget.ContentSlideShow.fadingTransitionPlugin={defaultOptions:{transitionDuration:500},initialize:function(b,c){var d=this;a.extend(c,a.extend({},d.defaultOptions,c));b.bind("attach-behavior",function(){d.attachBehavior(b)})},attachBehavior:function(f){var j=this,h=f.slides,i=h.$element,k=h.activeIndex,l=f._findWidgetElements("."+f.options.viewClassName);0==l.length&&f._$sslbpOverlay&&(l=a("."+f.options.viewClassName,f._$sslbpOverlay));h.bind("wp-panel-show",function(b,c){j._showElement(f, a(c.panel));f.options.contentLayout_runtime==="stack"&&j._showElement(f,f.$closeBtn)}).bind("wp-panel-hide",function(b,c){j._hideElement(f,a(c.panel))});f.options.contentLayout_runtime==="stack"&&f.bind("wp-slideshow-close",function(){j._hideElement(f,f.$closeBtn)});for(var m=0;m1&&b.setPointerCapture(c[0],a),j._scrollTo(f,-1,o*(!h&&(k=="left"||k=="up")||h&&(k=="right"||k=="down")?1:-1),0);else if(d=="cancel")j._scrollTo(f,f.slides.activeIndex,0,t),b.releasePointerCapture(c[0],a),f.trigger("wp-swiped");else if(d=="end"){d=f.slides.activeIndex;o=-1;if(g&&(k=="right"&&!h||k=="left"&&h)||!g&&(k=="down"&&!h||k=="up"&&h))o=d-1<0?i.length-1:d-1;else if(g&&(k=="left"&&!h||k=="right"&&h)||!g&&(k=="up"&&!h|| k=="down"&&h))o=d+1>i.length-1?0:d+1;o!=-1&&j._scrollTo(f,o,0,t);b.releasePointerCapture(c[0],a);f.trigger("wp-swiped")}}})})}},_showElement:function(a,b){var c=!1,d=function(){c||(c=!0,b.show().css("opacity",""))},g=setTimeout(d,a.options.transitionDuration+10);b.stop(!1,!0).fadeIn(a.options.transitionDuration,function(){clearTimeout(g);d()})},_hideElement:function(a,b){var c=!1,d=function(){c||(c=!0,b.hide().css("opacity",""))},g=setTimeout(d,a.options.transitionDuration+10);b.stop(!1,!0).fadeOut(a.options.transitionDuration, function(){clearTimeout(g);d()})},_scrollTo:function(b,c,d,g){if(!b._ftpSwipeNoInterrupt){var k=b.slides.$element,l=b.slides.activeIndex,m=c==-1;c==-1&&(c=d<0?l-1<0?k.length-1:l-1:l+1>k.length-1?0:l+1);var o=a(k[l]),r=a(k[c]);if(!m&&d==0||l==c){b._ftpSwipeNoInterrupt=!0;var p=0,n=!1,t=function(){if(!n&&(n=!0,r.show().css("opacity",""),c!=l&&b.slides.showPanel(c),++p==k.length))b._ftpSwipeNoInterrupt=!1};if(r.css("opacity")!=r.data("opacity")){var q=setTimeout(t,g+10);r.stop(!1,!0).animate({opacity:r.data("opacity")}, g,function(){clearTimeout(q);t()})}else t();k.each(function(d){var h=a(this),o=!1,l=function(){if(!o&&(o=!0,h.hide().css("opacity",""),++p==k.length))b._ftpSwipeNoInterrupt=!1},n;d!=c&&(h.css("display")!="none"&&h.css("opacity")!=0?(n=setTimeout(l,g+10),h.stop(!1,!0).animate({opacity:0},g,function(){clearTimeout(n);l()})):l())})}else d=Math.abs(d),m=o.width(),d>m&&(d=m),d=r.data("opacity")*(d/m),m=o.data("opacity")*(1-d),o.stop(!1,!0).animate({opacity:m},g),r.stop(!1,!0).show().animate({opacity:d}, g)}}};b.Widget.ContentSlideShow.filmstripTransitionPlugin={defaultOptions:{transitionDuration:500,transitionStyle:"horizontal"},initialize:function(b,c){var d=this;a.extend(c,a.extend({},d.defaultOptions,c));b.bind("attach-behavior",function(){d.attachBehavior(b)}).bind("bp_activate",function(){d.bpActivate(b)}).bind("bp-deactivate",function(){d.bpDeactivate(b)})},bpActivate:function(a){plugin._goToSlide(a,a.slides.activeElement,a.options.transitionDuration)},bpDeactivate:function(a){a.slides.unbind("wp-panel-show").unbind("wp-panel-hide"); a.unbind("wp-slideshow-before-previous").unbind("wp-slideshow-before-next").unbind("wp-slideshow-previous").unbind("wp-slideshow-next")},attachBehavior:function(f){var j=this,h=a(c),i=a(d.body),k=f.options,l=function(){return k.elastic==="fullWidth"?Math.max(h.width(),parseInt(i.css("min-width"))):p.width()},m=k.transitionStyle==="horizontal",o=f.slides,r=o.$element,p=f.$clip?f.$clip:f._findWidgetElements("."+k.clipClassName),n=f.$view?f.$view:f._findWidgetElements("."+k.viewClassName),t=l(),q=p.height(), y={left:1,right:1},C={up:1,down:1},w={top:"0",left:"0"};f.$clip=p;f.$view=n;var v=p.css("position");v!=="absolute"&&v!=="fixed"&&k.elastic!=="fullScreen"&&p.css("position","relative");n.css("position")!=="absolute"&&(w.position="relative");f._fstpOffsetSize=m?l():p.height();f._fstp$Clip=p;f._fstp$View=n;f._fstpStyleProp=m?"left":"top";f._fstpStylePropZero=m?"top":"left";o.bind("wp-panel-show",function(a,b){j._goToSlide(f,b.panel,k.transitionDuration);f.options.contentLayout_runtime==="stack"&&f.$closeBtn.stop(!0).fadeIn(k.transitionDuration)}); f.options.contentLayout_runtime==="stack"&&f.bind("wp-slideshow-close",function(){p.css({opacity:0.99}).stop(!0).animate({opacity:0},{queue:!1,duration:k.transitionDuration,complete:function(){w[f._fstpStyleProp]=(m?p.width():p.height())+"px";w[f._fstpStylePropZero]="0";n.css(w);p.css({opacity:""})}});f.$closeBtn.stop(!0).fadeOut(k.transitionDuration)});f._fstpRequestType=null;f.bind("wp-slideshow-before-previous wp-slideshow-before-next",function(a){f._fstpRequestType=a.type.replace(/.*-/,"");f._fstpOldActiveIndex= f.slides.activeIndex}).bind("wp-slideshow-previous wp-slideshow-next",function(){f._fstpRequestType=null;f._fstpOldActiveIndex=-1});var D=function(a,b){if(a===g||b===g)a=l(),b=p.height();k.elastic==="fullWidth"&&(b=p.height(),p.width(a),k.contentLayout_runtime!=="lightbox"&&p.css("left",p.position().left-p.offset().left),n.width(a));for(var c=0,d=m?a:b,h=f._fstpStyleProp,i=f._fstpStylePropZero,q=0;q1&&b.setPointerCapture(n[0],a),j._scrollBy(f,g*h);break;case "cancel":j._goToSlide(f,o.activeElement,0);b.releasePointerCapture(n[0],a);f.trigger("wp-swiped");break;case "end":j._finalizeSwipe(f,f._fstpOffsetSize*f.slides.activeIndex+g*h,h,d),b.releasePointerCapture(n[0],a)}}}))},_scrollBy:function(a,b){var c=a._fstp$View,d=a.slides.activeIndex*-a._fstpOffsetSize,g=a._fstpStyleProp,l={};c.stop(!1,!0);l[g]=d-b+"px";c.css(l)},_finalizeSwipe:function(a, b,c){var d=a.slides,g=a._fstp$View,l=b/a._fstpOffsetSize,b=a._fstpStyleProp,m={},l=c===1?Math.ceil(l):Math.floor(l),l=Math.max(0,Math.min(l,d.$element.length-1));m[b]=-(l*a._fstpOffsetSize)+"px";g.animate(m,a.options.transitionDuration,function(){d.showPanel(l);a.trigger("wp-swiped")})},_goToSlide:function(b,c,d){if(b){var g=a(c),k=b._fstp$View,l=b._fstpStyleProp,m=l==="left"?"offsetLeft":"offsetTop",o=l==="left"?"offsetWidth":"offsetHeight",r=c?-c[m]:b._fstp$Clip[0][o],p={};p[l]=r+"px";var n=b._fstpRequestType, t=b._fstpOldActiveIndex;if(n&&t!==-1){var q=b.slides.activeIndex,y=b.slides.$element.length-1;if(q!==t){var C=0;n==="previous"&&t===0&&q===y?C=-c[o]:n==="next"&&t===y&&q===0&&(b=b.slides.$element[t],C=b[m]+b[o]);C&&(p[l]=-C+"px",g.css(l,C+"px"))}}k.stop(!1,!0).animate(p,d,function(){C&&(g.css(l,-r+"px"),k.css(l,r+"px"))})}}};b.Widget.ContentSlideShow.alignPartsToPagePlugin={defaultOptions:{alignPartToPageClassName:"wp-slideshow-align-part-to-page"},initialize:function(b,c){var d=this;a.extend(c,a.extend({}, d.defaultOptions,c));b.bind("attach-behavior",function(){d.attachBehavior(b)})},attachBehavior:function(b){if(!("fullWidth"!==b.options.elastic||!b.$element.hasClass("align_parts_to_page")||"fixed"!==b.$element.css("position")||b.options.contentLayout_runtime==="lightbox")){var d=a(c),g=a("#page"),i=b.options,k=function(){var c=g.offset().left+"px";a("."+i.alignPartToPageClassName,b.$element).each(function(){a(this).css("margin-left",c)})};b.$element.children().each(function(){var b=a(this);0= a.slides.$element.length&&(this._reshuffle(a),(!a.options.loop||a.options.playOnce)&&a.stop()))}else a._realNext()}}})(jQuery,WebPro,window,document); (function(a,b,c){b.widget("Widget.Form",b.Widget,{_widgetName:"form",defaultOptions:{validationEvent:"blur",errorStateSensitivity:"low",ajaxSubmit:!0,fieldWrapperClass:"field",formErrorClass:"form-error",formSubmittedClass:"form-submitted",formDeliveredClass:"form-delivered",focusClass:"focus",notEmptyClass:"not-empty",emptyClass:"empty",validClass:"valid",invalidClass:"invalid",requiredClass:"required"},validationTypes:{"always-valid":/.*/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i, alpha:/^[A-z\s]+$/,numeric:/^[0-9]+$/,phone:/^([0-9])?(\s)?(\([0-9]{3}\)|[0-9]{3}(\-)?)(\s)?[0-9]{3}(\s|\-)?[0-9]{4}(\s|\sext|\sx)?(\s)?[0-9]*$/,captcha:function(a){return a.data("captchaValid")},recaptcha:function(){if("undefined"==typeof Recaptcha)return!1;var a=Recaptcha.get_response();return a&&024)return!0;if(c<0||c>59)return!0}else return!1;a.val(b);return!0}},_transformMarkup:function(){var b=this;b.hasCAPTCHA=!1;b.hasReCAPTCHA=!1;this.$element.find("."+this.options.fieldWrapperClass).each(function(){var c=a(this);switch(c.attr("data-type")){case "captcha":b.hasCAPTCHA=!0;c.find('input[name="CaptchaV2"]').remove();c.find('input[name="muse_CaptchaV2"]').attr("name","CaptchaV2"); break;case "recaptcha":b.hasReCAPTCHA=!0}})},_extractData:function(){this.event=this.options.validationEvent;this.errorSensitivity=this.options.errorStateSensitivity;this.classNames={focus:this.options.focusClass,blur:this.options.emptyClass,keydown:this.options.notEmptyClass}},_isEmpty:function(b){var c=b.find("input, textarea");switch(b.data("type")){case "checkboxgroup":case "radiogroup":return b=c.attr("name"),a('input[name="'+b+'"]:checked').length==0;case "checkbox":case "radio":return typeof c.attr("checked")=== "undefined";default:return c.val()==""}},_getGroupField:function(b){switch(b.data("type")){case "radio":return b.parent().closest("."+this.options.fieldWrapperClass).filter(function(){return"radiogroup"==a(this).data("type")});case "checkbox":return b.parent().closest("."+this.options.fieldWrapperClass).filter(function(){return"checkboxgroup"==a(this).data("type")})}return null},_updateReCaptchaChallenge:function(){var b=a("#recaptcha_response_field",this.$element);if(0!=b.length){if(0==a("#recaptcha_challenge_field_holder", b.parent()).length){var c=a("#recaptcha_challenge_field_holder");b.before(c)}for(var b=a("#recaptcha_image",this.$element),c=["#ReCaptchaV2","#ReCaptchaAnswer","#ReCaptchaChallenge"],f=0;f=400||h.responseText&&h.responseText.indexOf("=0)&&alert("Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration."); b.$element.removeClass(g);var l=null;if(h&&h.responseText)try{l=jQuery.parseJSON(h.responseText),l=l.FormProcessV2Response||l.FormResponse||l.MusePHPFormResponse||l}catch(m){}if(l&&l.success){b.$element.addClass(f);if(l.redirect){c.location.href=l.redirect;return}b.$element[0].reset();b.hasCAPTCHA&&b.$element.find("input:not([type=submit]), textarea").each(function(){a(this).attr("disabled","disabled")});b.$element.find("."+b.options.notEmptyClass).each(function(){a(this).removeClass(b.options.notEmptyClass)})}else if(h= b._getFieldsWithError(l))for(l=0;l